from video_list import *
from xigua_downloader import *
from multiprocessing.dummy import Pool

if __name__ == "__main__":
    user_id = '2317401847250772'
    mama = video()
    video_id, video_dict = mama.run(user_id)
    
    pool = Pool(4)
    downloader = xigua_downloader()
    pool.map(downloader.run, video_id)
    pool.close()
    pool.join()